package sb.simple.swagger;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "Swagger对象", description = "model的详细描述")
public class Swagger {

    //example=>示例值
    @ApiModelProperty(value = "用户id", example = "9527", required = true)
    private int id;
    @ApiModelProperty(value = "用户名", example = "akali", required = true)
    private String name;
    @ApiModelProperty(value = "用户年龄", example = "20", required = true)
    private int age;
}
